package kr.hkit.PowerJava.chapter06.work2;

import java.util.Scanner;

public class JogunMoonje1 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int n = 0;
		int price = 0;

		System.out.print("물건의 개수를 입력하시오. ");
		n = input.nextInt();

		if (n >= 100) {
			price = (int) (n * 100 * 0.8);
		} else {
			if (n >= 20) {
				price = (int) (n * 100 * 0.85);
			} else {
				if (n >= 10) {
					price = (int) (n * 100 * 0.9);
				} else {

					price = n * 100;
				}
			}

		}
		System.out.println(n + "개의 가격은" + price);
	}

}
